<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Get_ip extends CI_Controller {
    const ERROR_TAB     = 'error';
    public function __construct(){
        parent::__construct();
        $this->load->library('error_code_library');
        $this->load->database();
    }

    public function index(){
    	echo "183.135.250.10:15000";exit;
        $this->load->model('universal/Mobility_ip_model');
        $ip = $this->Mobility_ip_model->get_all_mobility_ip();
        //var_dump($ip);
        if(FALSE === array_key_exists(self::ERROR_TAB, $ip)) {
            echo $ip['ip'].":".$ip['port'];
        }
	}
	
	public function main(){
		$this->load->model('universal/Mobility_ip_model');
		$ip = $this->Mobility_ip_model->get_all_mobility_ip();
		//var_dump($ip);
		if(FALSE === array_key_exists(self::ERROR_TAB, $ip)) {
			echo $ip['ip'].":".$ip['port'];
		}
	}
}
